package demo3;

/*interface IA{
    void eat();
}

interface IB{
    void sleep();
}

interface C extends IA,IB{

}*/

class A{
    public String name;
    public int age;

    public A(String name, int age) {
        this.name = name;
        this.age = age;
    }

    @Override
    public String toString() {
        return "A{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}

public class Test {
    public String name;
    public int age;

    public static void main(String[] args) {
        A a = new A("小黑",1);
        System.out.println(a);
    }

}
